//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop
//---------------------------------------------------------------------------
USEFORM("Unit_principal.cpp", FmPrincipal);
USEFORM("Unit_cadalunos.cpp", FmCadAlunos);
USEFORM("Unit_caddisciplinas.cpp", FmCadDisciplinas);
USEFORM("Unit_cadnotas.cpp", FmCadNotas);
USEFORM("Unit_listaalunos.cpp", FmEditarAluno);
USEFORM("Unit_editardis.cpp", FmEditarDis);
USEFORM("Unit_exibiralunos.cpp", FmExibirAlunos);
//---------------------------------------------------------------------------
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
        try
        {
                 Application->Initialize();
                 Application->CreateForm(__classid(TFmPrincipal), &FmPrincipal);
                 Application->CreateForm(__classid(TFmCadAlunos), &FmCadAlunos);
                 Application->CreateForm(__classid(TFmCadDisciplinas), &FmCadDisciplinas);
                 Application->CreateForm(__classid(TFmCadNotas), &FmCadNotas);
                 Application->CreateForm(__classid(TFmEditarAluno), &FmEditarAluno);
                 Application->CreateForm(__classid(TFmEditarDis), &FmEditarDis);
                 Application->CreateForm(__classid(TFmExibirAlunos), &FmExibirAlunos);
                 Application->Run();
        }
        catch (Exception &exception)
        {
                 Application->ShowException(&exception);
        }
        catch (...)
        {
                 try
                 {
                         throw Exception("");
                 }
                 catch (Exception &exception)
                 {
                         Application->ShowException(&exception);
                 }
        }
        return 0;
}
//---------------------------------------------------------------------------

